package com.checkoutcheckins.client.clickhandlers;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.PopupPanel;

public class CloseHandler implements ClickHandler{
	
	private PopupPanel panelToClose;
	
	public CloseHandler(PopupPanel panelToClose)
	{
		this.panelToClose = panelToClose;
	}

	@Override
	public void onClick(ClickEvent event) {		
		panelToClose.hide();
	}

}
